import { post } from '@/request/http'
import store from '@/store'

//查询
export  const getTmAttendanceList=({ wdcTime,
  trkType = '',
  trkNo = '',})=>{
  return post('/FTKJWLHYPT/transoprt/getTmAttendanceList',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          wdcTime,
          trkType,
          trkNo,
          wdcFltId: store.state.user.FLT_UUID_DX_H,
        }
      }
    }
  })
}

//新增保存

export const addOrEditTmAttendancecar=({
  wdcId,
  wdcTrkId,
  wdcDvrId,

  wdcTime,
  wdcRemark,
})=>{
  return post('/FTKJWLHYPT/transoprt/addOrEditTmAttendancecar',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          wdcId,
          wdcTrkId,
          wdcDvrId,
          wdcFltId:store.state.user.FLT_UUID_DX_H,
          wdcTime,
          wdcStatus:'',
          wdcInsertuser:store.state.user.USR_CODE_DX_H,
          wdcLstupduser:store.state.user.USR_CODE_DX_H,
          wdcRemark,
          wdcX: '',
          wdcY: '',
          wdcLogindate: '',
          wdcAddress: ''
        }
      }
    }
  })
}

//运力发布（一键发布）
export  const  addAllTmAttendancecar=({wdcTime,})=>{
  return post('/FTKJWLHYPT/transoprt/addAllTmAttendancecar',{

    Data: {
      Parameters: {
        FTKJWLHYPT: {
          wdcFltId: store.state.user.FLT_UUID_DX_H,
          wdcTime,
          wdcInsertuser:store.state.user.USR_CODE_DX_H,
        }
      }
    }
  })
}

//运力删除
export const delTmAttendancecar=({wdcTime,
  wdcTrkId})=>{
  return post('/FTKJWLHYPT/transoprt/delTmAttendancecar',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          wdcFltId:store.state.user.FLT_UUID_DX_H,
          wdcTime,
          wdcTrkId
        }
      }
    }
  })
}
